<template>
    <div>
        <div @click="fn" v-bac class="content">
            <div class="title">
                {{ text }}
            </div>
            <img v-show="src" class="img" :src="src">
            <div class="s1 s2" v-show="right_text">
                {{ right_text }}
            </div>
            <div class="s1" v-show="icon" :class="icon"></div>
        </div>
    </div>
</template>
<script>
export default ({
    props: {
        text: {
            type: String,
        },
        right_text: {
            type: String,
        },
        icon: {
            type: String,
        },
        src: {
            type: String,
        },
    },
    data() {
        return {

        }
    },
    methods: {
        fn() {
            this.$emit('fn')
        },
    }
})
</script>
<style scoped lang="scss">
@function r($v) {
    @return $v / (390 /10rem)
}
.s2{
    margin-right: r(10);
}
.img {
    width: r(57);
    height: r(57);
    border-radius: 50%;
    margin-right: r(10);
}

.content {
    padding: r(10) r(20);
    display: flex;
    justify-content: space-between;
    box-sizing: content-box;
    align-items: center;

    .s1 {
        color: #6c757d;
        font-size: r(14);
    }

    .title {
        font-size: r(14);
        flex: 1;
        color: #000;
    }
}
</style>
